<template>
  <div class="home-footer flex">
    <span class="home-footer__text home-footer__text--active">首页</span>
    <span class="home-footer__text">商城</span>
    <div class="home-footer__add"></div>
    <span class="home-footer__text">消息</span>
    <span class="home-footer__text">我</span>
  </div>
</template>

<script setup> 

</script>

<style lang="scss" scoped>
.home-footer{
    width: 100%;
    height: pxToRem(50);
    justify-content: space-around;
    background-color: #fff;
    &__text{
        display: inline-block;
        width: pxToRem(60);
        height: 100%;
        line-height: pxToRem(50);
        text-align: center;
        font-size: pxToRem(16);
        color: #333;

        &--active{
            font-weight: 700;
        }
    }

    &__add{
        width: pxToRem(60);
        height: 90%;
        background-color: red;
        position: relative;
        border-radius: 5px;

        &::before{
            content: '';
            width: pxToRem(40);
            height: pxToRem(5);
            background-color: #fff;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 0;
            right: 0;
            margin: 0 auto;
        }

        &::after{
            content: '';
            width: pxToRem(5);
            height: pxToRem(40);
            background-color: #fff;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 0;
            right: 0;
            margin: 0 auto;
        }
    }
}
</style>